// +----------------------------------------------------------------------
// | xx [ xx赋能开发者，方便快捷开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.xxx.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed xx并不是自由软件，未经许可不能去掉xx相关版权
// +----------------------------------------------------------------------
// | Author: xx Team <xx@xx.com>
// +----------------------------------------------------------------------
// | Description:  菜单
// +----------------------------------------------------------------------
import { defineStore } from "pinia";
import { SelfStorage } from "../securels";

export const useMenuStore = defineStore("menu", {
  state: () => ({
    permissions: [], //权限
    list: [], //菜单列表
    breadcrumbList: [], //面包屑导航
  }),
  persist: {
    key: "MENU",
    storage: SelfStorage,
  },
});
